package com.sunkyc.module.oss.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 云存储对象
 * </p>
 *
 * @author sunkyc
 * @since 2022-06-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_oss")
@ApiModel(value="SysOss对象", description="云存储对象")
public class SysOss implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文件编号 主键")
    @TableId(value = "file_id", type = IdType.AUTO)
    private Long fileId;

    @ApiModelProperty(value = "文件存储名称")
    private String fileName;

    @ApiModelProperty(value = "文件原始名称")
    private String fileOnceName;

    @ApiModelProperty(value = "文件大小")
    private String fileSize;

    @ApiModelProperty(value = "文件存储前缀 方便删除时候拼接")
    private String filePathPrifex;

    @ApiModelProperty(value = "文件扩展名")
    private String fileFomat;

    @ApiModelProperty(value = "云url")
    private String fileOssUrl;

    @ApiModelProperty(value = "文件上传者ID")
    private Long createBy;

    @ApiModelProperty(value = "上传时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
